<?php

namespace Fang\UserBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
*@ORM\Entity
*@ORM\Table(name="roles")
**/
class Roles
{
  /**
  *@ORM\Column(type="integer")
  *@ORM\Id
  *@ORM\GeneratedValue(strategy="AUTO")
  **/
  private $rid;
  /**
  *英文唯一名称
  *@ORM\Column(type="string", length=255, unique=true)
  **/
  private $name;
  /**
  *可读名称
  *@ORM\Column(type="string", length=255)
  **/
  private $readname;
  /**
  *@ORM\Column(type="integer")
  **/
  private $created;
  /**
  *@ORM\Column(type="integer")
  **/
  private $changed;

    /**
     * Get rid
     *
     * @return integer 
     */
    public function getRid()
    {
        return $this->rid;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Roles
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set readname
     *
     * @param string $readname
     * @return Roles
     */
    public function setReadname($readname)
    {
        $this->readname = $readname;

        return $this;
    }

    /**
     * Get readname
     *
     * @return string 
     */
    public function getReadname()
    {
        return $this->readname;
    }

    /**
     * Set created
     *
     * @param integer $created
     * @return Roles
     */
    public function setCreated($created)
    {
        $this->created = $created;

        return $this;
    }

    /**
     * Get created
     *
     * @return integer 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set changed
     *
     * @param integer $changed
     * @return Roles
     */
    public function setChanged($changed)
    {
        $this->changed = $changed;

        return $this;
    }

    /**
     * Get changed
     *
     * @return integer 
     */
    public function getChanged()
    {
        return $this->changed;
    }
}
